/*
 * API接口及成功处理
 */

//防止ie8报错
window.console = window.console || (function () {
        var c = {};
        c.log = c.warn = c.debug = c.info = c.error = c.time = c.dir = c.profile = c.clear = c.exception = c.trace = c.assert = function () {
        };
        return c;
    })();
//公共方法
(function (root, factory) {
    if (typeof define === 'function' && define.amd) {
        // AMD
        define(['jquery'], factory);
    } else if (typeof exports === 'object') {
        // Node, CommonJS之类的
        module.exports = factory(require('jquery'));
    } else {
        // 浏览器全局变量(root 即 window)
        var obj = factory(jQuery);
        root.Api = obj;
    }
})(this, function ($) {
    /*
     * API接口及成功处理
     */
    var Api = {
        /**
         * 登录
         */
        login: function(params, callback){
            Pub.post('/admin/login.pwd', Pub.postParams(params), function(response){
                if(response.code === 0){
                    if(callback && typeof callback === 'function'){
                        callback(response.data);
                    }
                }
            })
        },
        /**
         * 导航-系统消息
         */
        accountinformation: function(params, callback){
            Pub.post('/admin/account.information', Pub.postParams(params), function(response){
                if(response.code === 0){
                    if(callback && typeof callback === 'function'){
                        callback(response.data);
                    }
                }
            })
        },
        /**
         * 系统首页上半
         */
        systemhomepage: function(params, callback){
            Pub.post('/admin/system.home.page', Pub.postParams(params), function(response){
                if(response.code === 0){
                    if(callback && typeof callback === 'function'){
                        callback(response.data);
                    }
                }
            })
        },
        /**
         * 借贷统计
         */
        borrowingstatistics: function(params, callback){
            Pub.post('/admin/borrowing.statistics', Pub.postParams(params), function(response){
                if(response.code === 0){
                    if(callback && typeof callback === 'function'){
                        callback(response.data);
                    }
                }
            })
        },
        /**
         * 还款统计
         */
        reimbursementofstatistical: function(params, callback){
            Pub.post('/admin/reimbursement.of.statistical', Pub.postParams(params), function(response){
                if(response.code === 0){
                    if(callback && typeof callback === 'function'){
                        callback(response.data);
                    }
                }
            })
        },
        /**
         * 登录日志
         */
        loginloglist: function(params, callback){
            Pub.post('/admin/login.log.list', Pub.postParams(params), function(response){
                if(response.code === 0){
                    if(callback && typeof callback === 'function'){
                        callback(response.data);
                    }
                }
            })
        },
        /**
         * 账户设置详情信息
         */
        admindetails: function(params, callback){
            Pub.post('/admin/admin.details', Pub.postParams(params), function(response){
                if(response.code === 0){
                    if(callback && typeof callback === 'function'){
                        callback(response.data);
                    }
                }
            })
        },
        /**
         * 账户设置修改密码
         */
        adminmodifypwd: function(params, callback){
            Pub.post('/admin/admin.modify.pwd', Pub.postParams(params), function(response){
                if(response.code === 0){
                    if(callback && typeof callback === 'function'){
                        callback(response.data);
                    }
                }
            })
        },
        /**
         * 系统信息
         */
        steminformation: function(params, callback){
            Pub.post('/admin/stem.information', Pub.postParams(params), function(response){
                if(response.code === 0){
                    if(callback && typeof callback === 'function'){
                        callback(response.data);
                    }
                }
            })
        },
        /**
         * 用户列表
         */
        userinfolist: function(params, callback){
            Pub.post('/admin/user.info.list', Pub.postParams(params), function(response){
                if(response.code === 0){
                    if(callback && typeof callback === 'function'){
                        callback(response.data);
                    }
                }
            })
        },
        /**
         * 用户列表详情
         */
        userlistdetails: function(params, callback){
            Pub.post('/admin/user.list.details', Pub.postParams(params), function(response){
                if(response.code === 0){
                    if(callback && typeof callback === 'function'){
                        callback(response.data);
                    }
                }
            })
        },
        /**
         * 用户列表删除
         */
        userdelete: function(params, callback){
            Pub.post('/admin/user.delete', Pub.postParams(params), function(response){
                if(response.code === 0){
                    if(callback && typeof callback === 'function'){
                        callback(response.data);
                    }
                }
            })
        },
        /**
         * 用户列表详情>团队成员列表
         */
        teammemberslist: function(params, callback){
            Pub.post('/admin/team.members.list', Pub.postParams(params), function(response){
                if(response.code === 0){
                    if(callback && typeof callback === 'function'){
                        callback(response.data);
                    }
                }
            })
        },
        /**
         * 用户列表详情>团队成员删除
         */
        teammemberslistdelete: function(params, callback){
            Pub.post('/admin/team.members.list.delete', Pub.postParams(params), function(response){
                if(response.code === 0){
                    if(callback && typeof callback === 'function'){
                        callback(response.data);
                    }
                }
            })
        },
        /**
         * 用户编辑详情
         */
        userlistmodifydetails: function(params, callback){
            Pub.post('/admin/user.list.modify.details', Pub.postParams(params), function(response){
                if(response.code === 0){
                    if(callback && typeof callback === 'function'){
                        callback(response.data);
                    }
                }
            })
        },
        /**
         * 用户编辑修改
         */
        userlistmodify: function(params, callback){
            Pub.post('/admin/user.list.modify', Pub.postParams(params), function(response){
                if(response.code === 0){
                    if(callback && typeof callback === 'function'){
                        callback(response.data);
                    }
                }
            })
        },
        /**
         * 方案列表
         */
        programlist: function(params, callback){
            Pub.post('/admin/program.list', Pub.postParams(params), function(response){
                if(response.code === 0){
                    if(callback && typeof callback === 'function'){
                        callback(response.data);
                    }
                }
            })
        },
        /**
         * 方案列表-详情
         */
        programdetails: function(params, callback){
            Pub.post('/admin/program.details', Pub.postParams(params), function(response){
                if(response.code === 0){
                    if(callback && typeof callback === 'function'){
                        callback(response.data);
                    }
                }
            })
        },
        /**
         * 方案列表-是否通过
         */
        programmodify: function(params, callback){
            Pub.post('/admin/program.modify', Pub.postParams(params), function(response){
                if(response.code === 0){
                    if(callback && typeof callback === 'function'){
                        callback(response.data);
                    }
                }
            })
        },
        /**
         * 用户实名审核列表
         */
        userrealnameauthlist: function(params, callback){
            Pub.post('/admin/user.real.name.auth.list', Pub.postParams(params), function(response){
                if(response.code === 0){
                    if(callback && typeof callback === 'function'){
                        callback(response.data);
                    }
                }
            })
        },
        /**
         * 用户实名审核列表查看详情
         */
        userauthlistdetails: function(params, callback){
            Pub.post('/admin/user.auth.list.details', Pub.postParams(params), function(response){
                if(response.code === 0){
                    if(callback && typeof callback === 'function'){
                        callback(response.data);
                    }
                }
            })
        },
        /**
         * 资讯列表
         */
        informationmessagelist: function(params, callback){
            Pub.post('/admin/information.message.list', Pub.postParams(params), function(response){
                if(response.code === 0){
                    if(callback && typeof callback === 'function'){
                        callback(response.data);
                    }
                }
            })
        },
        /**
         * 资讯列表-排序
         */
        informationmessagesort: function(params, callback){
            Pub.post('/admin/information.message.sort', Pub.postParams(params), function(response){
                if(response.code === 0){
                    if(callback && typeof callback === 'function'){
                        callback(response.data);
                    }
                }
            })
        },
        /**
         * 资讯列表-详情
         */
        informationmessagedetails: function(params, callback){
            Pub.post('/admin/information.message.details', Pub.postParams(params), function(response){
                if(response.code === 0){
                    if(callback && typeof callback === 'function'){
                        callback(response.data);
                    }
                }
            })
        },
        /**
         * 资讯列表-添加
         */
        informationmessageadd: function(params, callback){
            Pub.post('/admin/information.message.add', Pub.postParams(params), function(response){
                if(response.code === 0){
                    if(callback && typeof callback === 'function'){
                        callback(response.data);
                    }
                }
            })
        },
        /**
         * 资讯列表-删除
         */
        informationmessagedelete: function(params, callback){
            Pub.post('/admin/information.message.delete', Pub.postParams(params), function(response){
                if(response.code === 0){
                    if(callback && typeof callback === 'function'){
                        callback(response.data);
                    }
                }
            })
        },
        /**
         * 项目列表
         */
        projectlist: function(params, callback){
            Pub.post('/admin/project.list', Pub.postParams(params), function(response){
                if(response.code === 0){
                    if(callback && typeof callback === 'function'){
                        callback(response.data);
                    }
                }
            })
        },
        /**
         * 项目列表-排序
         */
        projectsort: function(params, callback){
            Pub.post('/admin/project.sort', Pub.postParams(params), function(response){
                if(response.code === 0){
                    if(callback && typeof callback === 'function'){
                        callback(response.data);
                    }
                }
            })
        },
        /**
         * 项目列表-删除
         */
        projectdelete: function(params, callback){
            Pub.post('/admin/project.delete', Pub.postParams(params), function(response){
                if(response.code === 0){
                    if(callback && typeof callback === 'function'){
                        callback(response.data);
                    }
                }
            })
        },
        /**
         * 项目列表-详情
         */
        projectdetails: function(params, callback){
            Pub.post('/admin/project.details', Pub.postParams(params), function(response){
                if(response.code === 0){
                    if(callback && typeof callback === 'function'){
                        callback(response.data);
                    }
                }
            })
        },
        /**
         * 项目列表-编辑
         */
        projectmodify: function(params, callback){
            Pub.post('/admin/project.modify', Pub.postParams(params), function(response){
                if(response.code === 0){
                    if(callback && typeof callback === 'function'){
                        callback(response.data);
                    }
                }
            })
        },
        /**
         * 项目列表-添加
         */
        projectadd: function(params, callback){
            Pub.post('/admin/project.add', Pub.postParams(params), function(response){
                if(response.code === 0){
                    if(callback && typeof callback === 'function'){
                        callback(response.data);
                    }
                }
            })
        },
        /**
         * 方案分类列表
         */
        programclasslist: function(params, callback){
            Pub.post('/admin/program.class.list', Pub.postParams(params), function(response){
                if(response.code === 0){
                    if(callback && typeof callback === 'function'){
                        callback(response.data);
                    }
                }
            })
        },
        /**
         * 方案分类列表-删除
         */
        programclassdelete: function(params, callback){
            Pub.post('/admin/program.class.delete', Pub.postParams(params), function(response){
                if(response.code === 0){
                    if(callback && typeof callback === 'function'){
                        callback(response.data);
                    }
                }
            })
        },
        /**
         * 方案分类列表-添加
         */
        programclassadd: function(params, callback){
            Pub.post('/admin/program.class.add', Pub.postParams(params), function(response){
                if(response.code === 0){
                    if(callback && typeof callback === 'function'){
                        callback(response.data);
                    }
                }
            })
        },
        /**
         * 支付列表
         */
        paymentlist: function(params, callback){
            Pub.post('/admin/payment.list', Pub.postParams(params), function(response){
                if(response.code === 0){
                    if(callback && typeof callback === 'function'){
                        callback(response.data);
                    }
                }
            })
        },
        /**
         * 支付列表-删除
         */
        paymentdelete: function(params, callback){
            Pub.post('/admin/payment.delete', Pub.postParams(params), function(response){
                if(response.code === 0){
                    if(callback && typeof callback === 'function'){
                        callback(response.data);
                    }
                }
            })
        },
        /**
         * 提现列表
         */
        withdrawallist: function(params, callback){
            Pub.post('/admin/withdrawal.list', Pub.postParams(params), function(response){
                if(response.code === 0){
                    if(callback && typeof callback === 'function'){
                        callback(response.data);
                    }
                }
            })
        },
        /**
         * 提现列表-删除
         */
        withdrawaldelete: function(params, callback){
            Pub.post('/admin/withdrawal.delete', Pub.postParams(params), function(response){
                if(response.code === 0){
                    if(callback && typeof callback === 'function'){
                        callback(response.data);
                    }
                }
            })
        },
        /**
         * 提现列表-详情
         */
        withdrawaldetails: function(params, callback){
            Pub.post('/admin/withdrawal.details', Pub.postParams(params), function(response){
                if(response.code === 0){
                    if(callback && typeof callback === 'function'){
                        callback(response.data);
                    }
                }
            })
        },
        /**
         * 账单列表
         */
        billlist: function(params, callback){
            Pub.post('/admin/bill.list', Pub.postParams(params), function(response){
                console.log(response);
                if(response.code === 0){
                    if(callback && typeof callback === 'function'){
                        callback(response.data);
                    }
                }
            })
        },
        /**
         * 账单列表-详情
         */
        billingdetails: function(params, callback){
            Pub.post('/admin/billing.details', Pub.postParams(params), function(response){
                if(response.code === 0){
                    if(callback && typeof callback === 'function'){
                        callback(response.data);
                    }
                }
            })
        },
        /**
         * 账单列表-详情-操作信息
         */
        operationalinformationlist: function(params, callback){
            Pub.post('/admin/operational.information.list', Pub.postParams(params), function(response){
                if(response.code === 0){
                    if(callback && typeof callback === 'function'){
                        callback(response.data);
                    }
                }
            })
        },
        /**
         * 账单列表-详情-备注订单
         */
        reimbursementlogadd: function(params, callback){
            Pub.post('/admin/reimbursement.log.add', Pub.postParams(params), function(response){
                if(response.code === 0){
                    if(callback && typeof callback === 'function'){
                        callback(response.data);
                    }
                }
            })
        },
        /**
         * 轮播列表
         */
        shufflingfigurelist: function(params, callback){
            Pub.post('/admin/shuffling.figure.list', Pub.postParams(params), function(response){
                if(response.code === 0){
                    if(callback && typeof callback === 'function'){
                        callback(response.data);
                    }
                }
            })
        },
        /**
         * 轮播列表上下线
         */
        shufflingfigureison: function(params, callback){
            Pub.post('/admin/shuffling.figure.is.on', Pub.postParams(params), function(response){
                if(response.code === 0){
                    if(callback && typeof callback === 'function'){
                        callback(response.data);
                    }
                }
            })
        },
        /**
         * 轮播列表置顶
         */
        shufflingfigureroof: function(params, callback){
            Pub.post('/admin/shuffling.figure.roof', Pub.postParams(params), function(response){
                console.log(response);
                if(response.code === 0){
                    if(callback && typeof callback === 'function'){
                        callback(response.data);
                    }
                }
            })
        },
        /**
         * 轮播列表删除
         */
        shufflingfiguredelete: function(params, callback){
            Pub.post('/admin/shuffling.figure.delete', Pub.postParams(params), function(response){
                if(response.code === 0){
                    if(callback && typeof callback === 'function'){
                        callback(response.data);
                    }
                }
            })
        },
        /**
         * 轮播列表添加
         */
        shufflingfigureadd: function(params, callback){
            Pub.post('/admin/shuffling.figure.add', Pub.postParams(params), function(response){
                if(response.code === 0){
                    if(callback && typeof callback === 'function'){
                        callback(response.data);
                    }
                }
            })
        },
        /**
         * 轮播列表详情
         */
        shufflingfiguredetails: function(params, callback){
            Pub.post('/admin/shuffling.figure.details', Pub.postParams(params), function(response){
                if(response.code === 0){
                    if(callback && typeof callback === 'function'){
                        callback(response.data);
                    }
                }
            })
        },
        /**
         * 轮播列表修改
         */
        shufflingfiguremodify: function(params, callback){
            Pub.post('/admin/shuffling.figure.modify', Pub.postParams(params), function(response){
                if(response.code === 0){
                    if(callback && typeof callback === 'function'){
                        callback(response.data);
                    }
                }
            })
        },
        /**
         * 用户实名审核列表-修改
         */
        userauthlistmodify: function(params, callback){
            Pub.post('/admin/user.auth.list.modify', Pub.postParams(params), function(response){
                if(response.code === 0){
                    if(callback && typeof callback === 'function'){
                        callback(response.data);
                    }
                }
            })
        },
        /**
         * 资讯编辑
         */
        informationmessageeditor: function(params, callback){
            Pub.post('/admin/information.message.editor', Pub.postParams(params), function(response){
                if(response.code === 0){
                    if(callback && typeof callback === 'function'){
                        callback(response.data);
                    }
                }
            })
        },
        /**
         * 数值列表
         */
        numericallist: function(params, callback){
            Pub.post('/admin/numerical.list', Pub.postParams(params), function(response){
                if(response.code === 0){
                    if(callback && typeof callback === 'function'){
                        callback(response.data);
                    }
                }
            })
        },
        /**
         * 数值详情
         */
        numericaldetails: function(params, callback){
            Pub.post('/admin/numerical.details', Pub.postParams(params), function(response){
                if(response.code === 0){
                    if(callback && typeof callback === 'function'){
                        callback(response.data);
                    }
                }
            })
        },
        /**
         * 数值修改
         */
        numericalmodify: function(params, callback){
            Pub.post('/admin/numerical.modify', Pub.postParams(params), function(response){
                if(response.code === 0){
                    if(callback && typeof callback === 'function'){
                        callback(response.data);
                    }
                }
            })
        },
        /**
         * 支付设置列表
         */
        paytypelist: function(params, callback){
            Pub.post('/admin/pay.type.list', Pub.postParams(params), function(response){
                if(response.code === 0){
                    if(callback && typeof callback === 'function'){
                        callback(response.data);
                    }
                }
            })
        },
        /**
         * 支付设置列表是否启用修改
         */
        paytypelistuse: function(params, callback){
            Pub.post('/admin/pay.type.list.use', Pub.postParams(params), function(response){
                if(response.code === 0){
                    if(callback && typeof callback === 'function'){
                        callback(response.data);
                    }
                }
            })
        },
        /**
         * 支付设置列表排序修改
         */
        paytypelistsort: function(params, callback){
            Pub.post('/admin/pay.type.list.sort', Pub.postParams(params), function(response){
                if(response.code === 0){
                    if(callback && typeof callback === 'function'){
                        callback(response.data);
                    }
                }
            })
        },
        /**
         * 支付设置列表-编辑（详情）
         */
        paytypedetails: function(params, callback){
            Pub.post('/admin/pay.type.details', Pub.postParams(params), function(response){
                if(response.code === 0){
                    if(callback && typeof callback === 'function'){
                        callback(response.data);
                    }
                }
            })
        },
        /**
         * 支付设置列表-编辑
         */
        paytypemodify: function(params, callback){
            Pub.post('/admin/pay.type.modify', Pub.postParams(params), function(response){
                if(response.code === 0){
                    if(callback && typeof callback === 'function'){
                        callback(response.data);
                    }
                }
            })
        },
        /**
         * 帮助列表
         */
        adminquestionlist: function(params, callback){
            Pub.post('/communal/admin.question.list', Pub.postParams(params), function(response){
                if(response.code === 0){
                    if(callback && typeof callback === 'function'){
                        callback(response.data);
                    }
                }
            })
        },
        /**
         * 帮助列表-删除
         */
        adminquestiondelete: function(params, callback){
            Pub.post('/communal/admin.question.delete', Pub.postParams(params), function(response){
                if(response.code === 0){
                    if(callback && typeof callback === 'function'){
                        callback(response.data);
                    }
                }
            })
        },
        /**
         * 帮助列表-是否显示
         */
        adminquestionshowupdate: function(params, callback){
            Pub.post('/communal/admin.question.show.update', Pub.postParams(params), function(response){
                if(response.code === 0){
                    if(callback && typeof callback === 'function'){
                        callback(response.data);
                    }
                }
            })
        },
        /**
         * 帮助列表-详情
         */
        adminquestioninfo: function(params, callback){
            Pub.post('/communal/admin.question.info', Pub.postParams(params), function(response){
                if(response.code === 0){
                    if(callback && typeof callback === 'function'){
                        callback(response.data);
                    }
                }
            })
        },
        /**
         * 帮助列表-更新或添加
         */
        adminquestionaction: function(params, callback){
            Pub.post('/communal/admin.question.action', Pub.postParams(params), function(response){
                if(response.code === 0){
                    if(callback && typeof callback === 'function'){
                        callback(response.data);
                    }
                }
            })
        },
        /**
         * 帮助分类列表
         */
        adminquestionclasslist: function(params, callback){
            Pub.post('/communal/admin.question.class.list', Pub.postParams(params), function(response){
                if(response.code === 0){
                    if(callback && typeof callback === 'function'){
                        callback(response.data);
                    }
                }
            })
        },
        /**
         * 帮助分类列表显示状态
         */
        adminquestionclassshowupdate: function(params, callback){
            Pub.post('/communal/admin.question.class.show.update', Pub.postParams(params), function(response){
                if(response.code === 0){
                    if(callback && typeof callback === 'function'){
                        callback(response.data);
                    }
                }
            })
        },
        /**
         * 帮助分类列表排序
         */
        adminquestionclasssortupdate: function(params, callback){
            Pub.post('/communal/admin.question.class.sort.update', Pub.postParams(params), function(response){
                if(response.code === 0){
                    if(callback && typeof callback === 'function'){
                        callback(response.data);
                    }
                }
            })
        },
        /**
         * 帮助分类列表删除
         */
        adminquestionclassdelete: function(params, callback){
            Pub.post('/communal/admin.question.class.delete', Pub.postParams(params), function(response){
                if(response.code === 0){
                    if(callback && typeof callback === 'function'){
                        callback(response.data);
                    }
                }
            })
        },
        /**
         * 帮助分类列表添加更新
         */
        adminquestionclassaction: function(params, callback){
            Pub.post('/communal/admin.question.class.action', Pub.postParams(params), function(response){
                if(response.code === 0){
                    if(callback && typeof callback === 'function'){
                        callback(response.data);
                    }
                }
            })
        },
        /**
         * 帮助分类列表详情
         */
        adminquestionclassinfo: function(params, callback){
            Pub.post('/communal/admin.question.class.info', Pub.postParams(params), function(response){
                if(response.code === 0){
                    if(callback && typeof callback === 'function'){
                        callback(response.data);
                    }
                }
            })
        },
        /**
         * 平台方案设置列表
         */
        platformsolutionlist: function(params, callback){
            Pub.post('/admin/platform.solution.list', Pub.postParams(params), function(response){
                if(response.code === 0){
                    if(callback && typeof callback === 'function'){
                        callback(response.data);
                    }
                }
            })
        },
        /**
         * 平台方案设置详情
         */
        platformsolutiondetails: function(params, callback){
            Pub.post('/admin/platform.solution.details', Pub.postParams(params), function(response){
                if(response.code === 0){
                    if(callback && typeof callback === 'function'){
                        callback(response.data);
                    }
                }
            })
        },
        /**
         * 平台方案设置修改
         */
        platformsolutionmodify: function(params, callback){
            Pub.post('/admin/platform.solution.modify', Pub.postParams(params), function(response){
                if(response.code === 0){
                    if(callback && typeof callback === 'function'){
                        callback(response.data);
                    }
                }
            })
        },
        /**
         * 信息推送-列表
         */
        messagesendlist: function(params, callback){
            Pub.post('/admin/message.send.list', Pub.postParams(params), function(response){
                if(response.code === 0){
                    if(callback && typeof callback === 'function'){
                        callback(response.data);
                    }
                }
            })
        },
        /**
         * 信息推送列表-详情
         */
        messagesenddetails: function(params, callback){
            Pub.post('/admin/message.send.details', Pub.postParams(params), function(response){
                if(response.code === 0){
                    if(callback && typeof callback === 'function'){
                        callback(response.data);
                    }
                }
            })
        },
        /**
         * 信息推送-是否APP推送消息-修改
         */
        messagesendmodifyapp: function(params, callback){
            Pub.post('/admin/message.send.modify.app', Pub.postParams(params), function(response){
                if(response.code === 0){
                    if(callback && typeof callback === 'function'){
                        callback(response.data);
                    }
                }
            })
        },
        /**
         * 信息推送-是否默认推送消息-修改
         */
        messagesendmodifydefault: function(params, callback){
            Pub.post('/admin/message.send.modify.default', Pub.postParams(params), function(response){
                if(response.code === 0){
                    if(callback && typeof callback === 'function'){
                        callback(response.data);
                    }
                }
            })
        },
        /**
         * 信息推送-修改
         */
        messagesendmodify: function(params, callback){
            Pub.post('/admin/message.send.modify', Pub.postParams(params), function(response){
                if(response.code === 0){
                    if(callback && typeof callback === 'function'){
                        callback(response.data);
                    }
                }
            })
        },
        /**
         * 发布系统消息
         */
        releasesystemmessage: function(params, callback){
            Pub.post('/admin/release.system.message', Pub.postParams(params), function(response){
                if(response.code === 0){
                    if(callback && typeof callback === 'function'){
                        callback(response.data);
                    }
                }
            })
        },
        /**
         * 发布活动消息
         */
        releaseactivitymessage: function(params, callback){
            Pub.post('/admin/release.activity.message', Pub.postParams(params), function(response){
                if(response.code === 0){
                    if(callback && typeof callback === 'function'){
                        callback(response.data);
                    }
                }
            })
        },
        /**
         * 获取所有客户端
         */
        getallclient: function(params, callback){
            Pub.post('/admin/get.all.client', Pub.postParams(params), function(response){
                if(response.code === 0){
                    if(callback && typeof callback === 'function'){
                        callback(response.data);
                    }
                }
            })
        },
         /**
         * 项目资源列表-是否推荐
         */
        projectisrecommend: function(params, callback){
            Pub.post('/admin/project.is.recommend', Pub.postParams(params), function(response){
                if(response.code === 0){
                    if(callback && typeof callback === 'function'){
                        callback(response.data);
                    }
                }
            })
        },
        /**
         * 推荐方案列表 -删除
         */
        projectplandelete: function(params, callback){
            Pub.post('/admin/project.plan.delete', Pub.postParams(params), function(response){
                if(response.code === 0){
                    if(callback && typeof callback === 'function'){
                        callback(response.data);
                    }
                }
            })
        },
        /**
         * 推荐方案列表
         */
        projectplanlist: function(params, callback){
            Pub.post('/admin/project.plan.list', Pub.postParams(params), function(response){
                if(response.code === 0){
                    if(callback && typeof callback === 'function'){
                        callback(response.data);
                    }
                }
            })
        },
        /**
         * 推荐方案列表详情
         */
        projectplandetails: function(params, callback){
            Pub.post('/admin/project.plan.details', Pub.postParams(params), function(response){
                if(response.code === 0){
                    if(callback && typeof callback === 'function'){
                        callback(response.data);
                    }
                }
            })
        },
        /**
         * 推荐方案列表修改
         */
        projectplanmodify: function(params, callback){
            Pub.post('/admin/project.plan.modify', Pub.postParams(params), function(response){
                if(response.code === 0){
                    if(callback && typeof callback === 'function'){
                        callback(response.data);
                    }
                }
            })
        },
        /**
         * 推荐方案列表添加
         */
        projectplanadd: function(params, callback){
            Pub.post('/admin/project.plan.add', Pub.postParams(params), function(response){
                if(response.code === 0){
                    if(callback && typeof callback === 'function'){
                        callback(response.data);
                    }
                }
            })
        },
        /**
         * 推荐方案列表推荐修改
         */
        projectplanisrecommend: function(params, callback){
            Pub.post('/admin/project.plan.is.recommend', Pub.postParams(params), function(response){
                if(response.code === 0){
                    if(callback && typeof callback === 'function'){
                        callback(response.data);
                    }
                }
            })
        },
        /**
         * 获取系统消息列表
         */
        getsystemmessagelist: function(params, callback){
            Pub.post('/admin/get.system.message.list', Pub.postParams(params), function(response){
                if(response.code === 0){
                    if(callback && typeof callback === 'function'){
                        callback(response.data);
                    }
                }
            })
        },
        /**
         * 获取活动消息列表
         */
        getactivitymessagelist: function(params, callback){
            Pub.post('/admin/get.activity.message.list', Pub.postParams(params), function(response){
                if(response.code === 0){
                    if(callback && typeof callback === 'function'){
                        callback(response.data);
                    }
                }
            })
        },
        /**
         * 创业帮助列表
         */
        businesshelplist: function(params, callback){
            Pub.post('/admin/business.help.list', Pub.postParams(params), function(response){
                if(response.code === 0){
                    if(callback && typeof callback === 'function'){
                        callback(response.data);
                    }
                }
            })
        },
        /**
         * 创业帮助列表-删除
         */
        businesshelpdelete: function(params, callback){
            Pub.post('/admin/business.help.delete', Pub.postParams(params), function(response){
                if(response.code === 0){
                    if(callback && typeof callback === 'function'){
                        callback(response.data);
                    }
                }
            })
        },
        /**
         * 创业帮助列表-详情
         */
        businesshelpdetails: function(params, callback){
            Pub.post('/admin/business.help.details', Pub.postParams(params), function(response){
                if(response.code === 0){
                    if(callback && typeof callback === 'function'){
                        callback(response.data);
                    }
                }
            })
        },
        /**
         * 创业帮助列表-编辑
         */
        businesshelpeditor: function(params, callback){
            Pub.post('/admin/business.help.editor', Pub.postParams(params), function(response){
                if(response.code === 0){
                    if(callback && typeof callback === 'function'){
                        callback(response.data);
                    }
                }
            })
        },
        /**
         * 广告列表
         */
        adlist: function(params, callback){
            Pub.post('/admin/ad.list', Pub.postParams(params), function(response){
                if(response.code === 0){
                    if(callback && typeof callback === 'function'){
                        callback(response.data);
                    }
                }
            })
        },
        /**
         * 广告列表-上下线
         */
        adoperate: function(params, callback){
            Pub.post('/admin/ad.operate', Pub.postParams(params), function(response){
                if(response.code === 0){
                    if(callback && typeof callback === 'function'){
                        callback(response.data);
                    }
                }
            })
        },
        /**
         * 广告列表-删除
         */
        addel: function(params, callback){
            Pub.post('/admin/ad.del', Pub.postParams(params), function(response){
                if(response.code === 0){
                    if(callback && typeof callback === 'function'){
                        callback(response.data);
                    }
                }
            })
        },
        /**
         * 广告列表-详情
         */
        adinfo: function(params, callback){
            Pub.post('/admin/ad.info', Pub.postParams(params), function(response){
                if(response.code === 0){
                    if(callback && typeof callback === 'function'){
                        callback(response.data);
                    }
                }
            })
        },
        /**
         * 广告列表-编辑
         */
        adupdate: function(params, callback){
            Pub.post('/admin/ad.update', Pub.postParams(params), function(response){
                if(response.code === 0){
                    if(callback && typeof callback === 'function'){
                        callback(response.data);
                    }
                }
            })
        },
        /**
         * 广告列表-添加
         */
        adadd: function(params, callback){
            Pub.post('/admin/ad.add', Pub.postParams(params), function(response){
                if(response.code === 0){
                    if(callback && typeof callback === 'function'){
                        callback(response.data);
                    }
                }
            })
        },
        /**
         * 获取地址
         */
        areaList: function(params, callback){
            Pub.post('/communal/area.list', Pub.postParams(params), function(response){

                if(response.code === 0){
                    if(callback && typeof callback === 'function'){
                        callback(response.data);
                    }
                }
            });
        },
        /**
         * 用户冻结时是否有欠款提示
         */
        arrearssuggests: function(params, callback){
            Pub.post('/admin/arrears.suggests', Pub.postParams(params), function(response){
                if(response.code === 0){
                    if(callback && typeof callback === 'function'){
                        callback(response.data);
                    }
                }
            });
        },
        /**
         * 冻结（恢复）用户
         */
        isfreeze: function(params, callback){
            Pub.post('/admin/is.freeze', Pub.postParams(params), function(response){
                if(response.code === 0){
                    if(callback && typeof callback === 'function'){
                        callback(response.data);
                    }
                }
            });
        },
        /**
         * 用户列表筛选-管理员管辖的地区
         */
        admineachdistrict: function(params, callback){
            Pub.post('/admin/admin.each.district', Pub.postParams(params), function(response){
                if(response.code === 0){
                    if(callback && typeof callback === 'function'){
                        callback(response.data);
                    }
                }
            });
        },
        /**
         * 成员列表
         */
        adminlist: function(params, callback){
            Pub.post('/admin/admin.list', Pub.postParams(params), function(response){
                if(response.code === 0){
                    if(callback && typeof callback === 'function'){
                        callback(response.data);
                    }
                }
            });
        },
        /**
         * 成员列表 - 管理员成员删除
         */
        admindelete: function(params, callback){
            Pub.post('/admin/admin.delete', Pub.postParams(params), function(response){
                if(response.code === 0){
                    if(callback && typeof callback === 'function'){
                        callback(response.data);
                    }
                }
            });
        },
        /**
         * 成员列表-部门名称下拉框
         */
        rolenamelist: function(params, callback){
            Pub.post('/admin/role.name.list', Pub.postParams(params), function(response){
                if(response.code === 0){
                    if(callback && typeof callback === 'function'){
                        callback(response.data);
                    }
                }
            });
        },
        /**
         * 成员列表 - 详情
         */
        adminlistdetails: function(params, callback){
            Pub.post('/admin/admin.list.details', Pub.postParams(params), function(response){
                if(response.code === 0){
                    if(callback && typeof callback === 'function'){
                        callback(response.data);
                    }
                }
            });
        },
        /**
         * 成员列表 - 是否启用
         */
        adminisuse: function(params, callback){
            Pub.post('/admin/admin.is.use', Pub.postParams(params), function(response){
                if(response.code === 0){
                    if(callback && typeof callback === 'function'){
                        callback(response.data);
                    }
                }
            });
        },
        /**
         * 成员列表 - 添加
         */
        adminadd: function(params, callback){
            Pub.post('/admin/admin.add', Pub.postParams(params), function(response){
                if(response.code === 0){
                    if(callback && typeof callback === 'function'){
                        callback(response.data);
                    }
                }
            });
        },
        /**
         * 成员列表-修改
         */
        adminmodify: function(params, callback){
            Pub.post('/admin/admin.modify', Pub.postParams(params), function(response){
                // console.log(response);
                if(response.code === 0){
                    if(callback && typeof callback === 'function'){
                        callback(response.data);
                    }
                }
            });
        },
        /**
         * 部门列表
         */
        admingrouplist: function(params, callback){
            Pub.post('/admin/admin.group.list', Pub.postParams(params), function(response){
                if(response.code === 0){
                    if(callback && typeof callback === 'function'){
                        callback(response.data);
                    }
                }
            });
        },
        /**
         * 部门列表 - 删除
         */
        admingroupdelete: function(params, callback){
            Pub.post('/admin/admin.group.delete', Pub.postParams(params), function(response){
                if(response.code === 0){
                    if(callback && typeof callback === 'function'){
                        callback(response.data);
                    }
                }
            });
        },
        /**
         * 部门-是否启用
         */
        admingroupisuse: function(params, callback){
            Pub.post('/admin/admin.group.is.use', Pub.postParams(params), function(response){
                if(response.code === 0){
                    if(callback && typeof callback === 'function'){
                        callback(response.data);
                    }
                }
            });
        },
        /**
         * 部门-详情
         */
        admingrouplistdetails: function(params, callback){
            Pub.post('/admin/admin.group.list.details', Pub.postParams(params), function(response){
                if(response.code === 0){
                    if(callback && typeof callback === 'function'){
                        callback(response.data);
                    }
                }
            });
        },
        /**
         * 部门-添加
         */
        admingroupadd: function(params, callback){
            Pub.post('/admin/admin.group.add', Pub.postParams(params), function(response){
                if(response.code === 0){
                    if(callback && typeof callback === 'function'){
                        callback(response.data);
                    }
                }
            });
        },
        /**
         * 部门-修改
         */
        admingroupmodify: function(params, callback){
            Pub.post('/admin/admin.group.modify', Pub.postParams(params), function(response){
                if(response.code === 0){
                    if(callback && typeof callback === 'function'){
                        callback(response.data);
                    }
                }
            });
        },
        /**
         * 部门列表 - 权限 - 详情
         */
        admingrouplistpermissionsdetails: function(params, callback){
            Pub.post('/admin/admin.group.list.permissions.details', Pub.postParams(params), function(response){
                if(response.code === 0){
                    if(callback && typeof callback === 'function'){
                        callback(response.data);
                    }
                }
            });
        },
        /**
         * 部门列表 - 权限 - 修改
         */
        admingrouppermissionsmodify: function(params, callback){
            Pub.post('/admin/admin.group.permissions.modify', Pub.postParams(params), function(response){
                if(response.code === 0){
                    if(callback && typeof callback === 'function'){
                        callback(response.data);
                    }
                }
            });
        },
        /**
         * 借款列表-审核-详情
         */
        withdrawalauditdetails: function(params, callback){
            Pub.post('/admin/withdrawal.audit.details', Pub.postParams(params), function(response){
                if(response.code === 0){
                    if(callback && typeof callback === 'function'){
                        callback(response.data);
                    }
                }
            });
        },
        /**
         * 借款列表-审核-回复
         */
        withdrawalauditreply: function(params, callback){
            Pub.post('/admin/withdrawal.audit.reply', Pub.postParams(params), function(response){
                if(response.code === 0){
                    if(callback && typeof callback === 'function'){
                        callback(response.data);
                    }
                }
            });
        },
        /**
         * 投递方案列表 - 删除
         */
        deliveryprogramdelete: function(params, callback){
            Pub.post('/admin/delivery.program.delete', Pub.postParams(params), function(response){
                if(response.code === 0){
                    if(callback && typeof callback === 'function'){
                        callback(response.data);
                    }
                }
            });
        },
        /**
         * 账单列表 - 删除
         */
        operationalinformationlistdelete: function(params, callback){
            Pub.post('/admin/operational.information.list.delete', Pub.postParams(params), function(response){
                if(response.code === 0){
                    if(callback && typeof callback === 'function'){
                        callback(response.data);
                    }
                }
            });
        },
        /**
         * 回收站-投递列表
         */
        recyclingprogramlist: function(params, callback){
            Pub.post('/admin/recycling.program.list', Pub.postParams(params), function(response){
                if(response.code === 0){
                    if(callback && typeof callback === 'function'){
                        callback(response.data);
                    }
                }
            });
        },
        /**
         * 回收站-投递列表-删除
         */
        recyclingprogramdelete: function(params, callback){
            Pub.post('/admin/recycling.program.delete', Pub.postParams(params), function(response){
                if(response.code === 0){
                    if(callback && typeof callback === 'function'){
                        callback(response.data);
                    }
                }
            });
        },
        /**
         * 回收站-投递列表-恢复
         */
        recyclingprogramrestore: function(params, callback){
            Pub.post('/admin/recycling.program.restore', Pub.postParams(params), function(response){
                if(response.code === 0){
                    if(callback && typeof callback === 'function'){
                        callback(response.data);
                    }
                }
            });
        },
        /**
         * 回收站 - 账单列表
         */
        recyclingbilllist: function(params, callback){
            Pub.post('/admin/recycling.bill.list', Pub.postParams(params), function(response){
                if(response.code === 0){
                    if(callback && typeof callback === 'function'){
                        callback(response.data);
                    }
                }
            });
        },
        /**
         * 回收站- 账单列表-恢复
         */
        recyclingbilllistrestore: function(params, callback){
            Pub.post('/admin/recycling.bill.list.restore', Pub.postParams(params), function(response){
                if(response.code === 0){
                    if(callback && typeof callback === 'function'){
                        callback(response.data);
                    }
                }
            });
        },
        /**
         * 回收站 - 账单列表 - 删除
         */
        recyclingbilllistdelete: function(params, callback){
            Pub.post('/admin/recycling.bill.list.delete', Pub.postParams(params), function(response){
                if(response.code === 0){
                    if(callback && typeof callback === 'function'){
                        callback(response.data);
                    }
                }
            });
        },
        /**
         * 获取系统消息详情
         */
        getsystemmessageinfo: function(params, callback){
            Pub.post('/admin/get.system.message.info', Pub.postParams(params), function(response){
                if(response.code === 0){
                    if(callback && typeof callback === 'function'){
                        callback(response.data);
                    }
                }
            });
        },
        /**
         * 获取活动消息详情
         */
        getactivitymessageinfo: function(params, callback){
            Pub.post('/admin/get.activity.message.info', Pub.postParams(params), function(response){
                if(response.code === 0){
                    if(callback && typeof callback === 'function'){
                        callback(response.data);
                    }
                }
            });
        },
        /**
         * 获取用户消息列表
         */
        getusermessagelist: function(params, callback){
            Pub.post('/admin/get.user.message.list', Pub.postParams(params), function(response){
                if(response.code === 0){
                    if(callback && typeof callback === 'function'){
                        callback(response.data);
                    }
                }
            });
        },
        /**
         * 获取用户消息列表详情
         */
        getusermessageinfo: function(params, callback){
            Pub.post('/admin/get.user.message.info', Pub.postParams(params), function(response){
                if(response.code === 0){
                    if(callback && typeof callback === 'function'){
                        callback(response.data);
                    }
                }
            });
        },
         /**
         * 方案列表
         */
        newplanlistdetails: function(params, callback){
            Pub.post('/admin/new.plan.list.details', Pub.postParams(params), function(response){
                if(response.code === 0){
                    if(callback && typeof callback === 'function'){
                        callback(response.data);
                    }
                }
            });
        },
         /**
         * 方案列表
         */
        newplanlist: function(params, callback){
            Pub.post('/admin/new.plan.list', Pub.postParams(params), function(response){
                if(response.code === 0){
                    if(callback && typeof callback === 'function'){
                        callback(response.data);
                    }
                }
            });
        },
        /**
         * 分类列表
         */
        newclasslist: function(params, callback){
            Pub.post('/admin/new.class.list', Pub.postParams(params), function(response){
                if(response.code === 0){
                    if(callback && typeof callback === 'function'){
                        callback(response.data);
                    }
                }
            });
        },
        /**
         * 分类 - 删除
         */
        newclassdelete: function(params, callback){
            Pub.post('/admin/new.class.delete', Pub.postParams(params), function(response){
                if(response.code === 0){
                    if(callback && typeof callback === 'function'){
                        callback(response.data);
                    }
                }
            });
        },
        /**
         * 分类 - 添加
         */
        newclassadd: function(params, callback){
            Pub.post('/admin/new.class.add', Pub.postParams(params), function(response){
                if(response.code === 0){
                    if(callback && typeof callback === 'function'){
                        callback(response.data);
                    }
                }
            });
        },
        /**
         * 分类下拉框
         */
        newpulldown: function(params, callback){
            Pub.post('/admin/new.pull.down', Pub.postParams(params), function(response){
                if(response.code === 0){
                    if(callback && typeof callback === 'function'){
                        callback(response.data);
                    }
                }
            });
        },
        /**
         * 方案列表 - 审核是否通过
         */
        newplanliststate: function(params, callback){
            Pub.post('/admin/new.plan.list.state', Pub.postParams(params), function(response){
                if(response.code === 0){
                    if(callback && typeof callback === 'function'){
                        callback(response.data);
                    }
                }
            });
        },
        /**
         * 方案列表 - 删除
         */
        newplanlistdelete: function(params, callback){
            Pub.post('/admin/new.plan.list.delete', Pub.postParams(params), function(response){
                if(response.code === 0){
                    if(callback && typeof callback === 'function'){
                        callback(response.data);
                    }
                }
            });
        },
        /**
         * 资源列表
         */
        newprojectlist: function(params, callback){
            Pub.post('/admin/new.project.list', Pub.postParams(params), function(response){
                if(response.code === 0){
                    if(callback && typeof callback === 'function'){
                        callback(response.data);
                    }
                }
            });
        },
        /**
         * 资源列表 - 删除
         */
        newprojectlistdelete: function(params, callback){
            Pub.post('/admin/new.project.list.delete', Pub.postParams(params), function(response){
                if(response.code === 0){
                    if(callback && typeof callback === 'function'){
                        callback(response.data);
                    }
                }
            });
        },
        /**
         * 资源列表 - 详情
         */
        newprojectlistdetails: function(params, callback){
            Pub.post('/admin/new.project.list.details', Pub.postParams(params), function(response){
                if(response.code === 0){
                    if(callback && typeof callback === 'function'){
                        callback(response.data);
                    }
                }
            });
        },
        /**
         * 资源列表 - 审核是否通过
         */
        newprojectliststate: function(params, callback){
            Pub.post('/admin/new.project.list.state', Pub.postParams(params), function(response){
                if(response.code === 0){
                    if(callback && typeof callback === 'function'){
                        callback(response.data);
                    }
                }
            });
        },
        /**
         * 资讯列表
         */
        newinformationlist: function(params, callback){
            Pub.post('/admin/new.information.list', Pub.postParams(params), function(response){
                if(response.code === 0){
                    if(callback && typeof callback === 'function'){
                        callback(response.data);
                    }
                }
            });
        },
        /**
         * 资讯列表 - 删除
         */
        newinformationlistdelete: function(params, callback){
            Pub.post('/admin/new.information.list.delete', Pub.postParams(params), function(response){
                if(response.code === 0){
                    if(callback && typeof callback === 'function'){
                        callback(response.data);
                    }
                }
            });
        },
        /**
         * 资讯列表 - 详情
         */
        newinformationlistdetails: function(params, callback){
            Pub.post('/admin/new.information.list.details', Pub.postParams(params), function(response){
                if(response.code === 0){
                    if(callback && typeof callback === 'function'){
                        callback(response.data);
                    }
                }
            });
        },
        /**
         * 资讯列表 - 审核是否通过
         */
        newinformationliststate: function(params, callback){
            Pub.post('/admin/new.information.list.state', Pub.postParams(params), function(response){
                if(response.code === 0){
                    if(callback && typeof callback === 'function'){
                        callback(response.data);
                    }
                }
            });
        },
        /**
         * 创业帮助列表
         */
        newbusinesshelplist: function(params, callback){
            Pub.post('/admin/new.business.help.list', Pub.postParams(params), function(response){
                if(response.code === 0){
                    if(callback && typeof callback === 'function'){
                        callback(response.data);
                    }
                }
            });
        },
        /**
         * 创业帮助列表 - 删除
         */
        newbusinesshelplistdelete: function(params, callback){
            Pub.post('/admin/new.business.help.list.delete', Pub.postParams(params), function(response){
                if(response.code === 0){
                    if(callback && typeof callback === 'function'){
                        callback(response.data);
                    }
                }
            });
        },
        /**
         * 创业帮助列表 - 详情
         */
        newbusinesshelplistdetails: function(params, callback){
            Pub.post('/admin/new.business.help.list.details', Pub.postParams(params), function(response){
                if(response.code === 0){
                    if(callback && typeof callback === 'function'){
                        callback(response.data);
                    }
                }
            });
        },
        /**
         * 创业帮助列表  - 审核是否通过
         */
        newbusinesshelpliststate: function(params, callback){
            Pub.post('/admin/new.business.help.list.state', Pub.postParams(params), function(response){
                if(response.code === 0){
                    if(callback && typeof callback === 'function'){
                        callback(response.data);
                    }
                }
            });
        },
        /**
         * 合作列表
         */
        newcooperationdeliverylist: function(params, callback){
            Pub.post('/admin/new.cooperation.delivery.list', Pub.postParams(params), function(response){
                if(response.code === 0){
                    if(callback && typeof callback === 'function'){
                        callback(response.data);
                    }
                }
            });
        },
        /**
         * 合作列表 - 删除
         */
        newcooperationdeliverylistdelete: function(params, callback){
            Pub.post('/admin/new.cooperation.delivery.list.delete', Pub.postParams(params), function(response){
                if(response.code === 0){
                    if(callback && typeof callback === 'function'){
                        callback(response.data);
                    }
                }
            });
        },
        /**
         * 合作列表- 详情
         */
        newcooperationdeliverylistdetails: function(params, callback){
            Pub.post('/admin/new.cooperation.delivery.list.details', Pub.postParams(params), function(response){
                if(response.code === 0){
                    if(callback && typeof callback === 'function'){
                        callback(response.data);
                    }
                }
            });
        },
        /**
         * 合作列表 - 审核是否通过
         */
        newcooperationdeliveryliststate: function(params, callback){
            Pub.post('/admin/new.cooperation.delivery.list.state', Pub.postParams(params), function(response){
                if(response.code === 0){
                    if(callback && typeof callback === 'function'){
                        callback(response.data);
                    }
                }
            });
        },
        /**
         * 合作列表 - 排序
         */
        newcooperationdeliverylistsort: function(params, callback){
            Pub.post('/admin/new.cooperation.delivery.list.sort', Pub.postParams(params), function(response){
                if(response.code === 0){
                    if(callback && typeof callback === 'function'){
                        callback(response.data);
                    }
                }
            });
        },
        /**
         * 合作列表 - 修改
         */
        newcooperationdeliverylistmodify: function(params, callback){
            Pub.post('/admin/new.cooperation.delivery.list.modify', Pub.postParams(params), function(response){
                if(response.code === 0){
                    if(callback && typeof callback === 'function'){
                        callback(response.data);
                    }
                }
            });
        },
        /**
         * 数值列表(新)
         */
        newnumericallist: function(params, callback){
            Pub.post('/admin/new.numerical.list', Pub.postParams(params), function(response){
                if(response.code === 0){
                    if(callback && typeof callback === 'function'){
                        callback(response.data);
                    }
                }
            });
        },
        /**
         * 数值修改
         */
        newnumericalmodify: function(params, callback){
            Pub.post('/admin/new.numerical.modify', Pub.postParams(params), function(response){
                if(response.code === 0){
                    if(callback && typeof callback === 'function'){
                        callback(response.data);
                    }
                }
            });
        },
        /**
         * 数值详情(新)
         */
        newnumericaldetails: function(params, callback){
            Pub.post('/admin/new.numerical.details', Pub.postParams(params), function(response){
                if(response.code === 0){
                    if(callback && typeof callback === 'function'){
                        callback(response.data);
                    }
                }
            });
        },
        /**
         * 方案列表 - 是否推荐
         */
        newplanlistisrecommend: function(params, callback){
            Pub.post('/admin/new.plan.list.is.recommend', Pub.postParams(params), function(response){
                if(response.code === 0){
                    if(callback && typeof callback === 'function'){
                        callback(response.data);
                    }
                }
            });
        },
        /**
         * 方案列表 - 修改
         */
        newplanlistmodify: function(params, callback){
            Pub.post('/admin/new.plan.list.modify', Pub.postParams(params), function(response){
                if(response.code === 0){
                    if(callback && typeof callback === 'function'){
                        callback(response.data);
                    }
                }
            });
        },
        /**
         * 方案列表 -添加
         */
        newplanlistadd: function(params, callback){
            Pub.post('/admin/new.plan.list.add', Pub.postParams(params), function(response){
                if(response.code === 0){
                    if(callback && typeof callback === 'function'){
                        callback(response.data);
                    }
                }
            });
        },
        /**
         * 资源列表 - 是否推荐
         */
        newprojectlistisrecommend: function(params, callback){
            Pub.post('/admin/new.project.list.is.recommend', Pub.postParams(params), function(response){
                if(response.code === 0){
                    if(callback && typeof callback === 'function'){
                        callback(response.data);
                    }
                }
            });
        },
        /**
         * 资源列表-修改
         */
        newprojectlistmodify: function(params, callback){
            Pub.post('/admin/new.project.list.modify', Pub.postParams(params), function(response){
                if(response.code === 0){
                    if(callback && typeof callback === 'function'){
                        callback(response.data);
                    }
                }
            });
        },
        /**
         * 资源列表-添加
         */
        newprojectlistadd: function(params, callback){
            Pub.post('/admin/new.project.list.add', Pub.postParams(params), function(response){
                if(response.code === 0){
                    if(callback && typeof callback === 'function'){
                        callback(response.data);
                    }
                }
            });
        },
        /**
         * 资讯列表 - 排序
         */
        newinformationlistsort: function(params, callback){
            Pub.post('/admin/new.information.list.sort', Pub.postParams(params), function(response){
                if(response.code === 0){
                    if(callback && typeof callback === 'function'){
                        callback(response.data);
                    }
                }
            });
        },
        /**
         * 资讯列表-修改
         */
        newinformationlistmodify: function(params, callback){
            Pub.post('/admin/new.information.list.modify', Pub.postParams(params), function(response){
                if(response.code === 0){
                    if(callback && typeof callback === 'function'){
                        callback(response.data);
                    }
                }
            });
        },
        /**
         * 资讯列表-添加
         */
        newinformationlistadd: function(params, callback){
            Pub.post('/admin/new.information.list.add', Pub.postParams(params), function(response){
                if(response.code === 0){
                    if(callback && typeof callback === 'function'){
                        callback(response.data);
                    }
                }
            });
        },
        /**
         * 创业帮助列表-修改
         */
        newbusinesshelplistmodify: function(params, callback){
            Pub.post('/admin/new.business.help.list.modify', Pub.postParams(params), function(response){
                if(response.code === 0){
                    if(callback && typeof callback === 'function'){
                        callback(response.data);
                    }
                }
            });
        },
        /**
         * 合作列表 - 修改
         */
        newcooperationdeliverylistmodify: function(params, callback){
            Pub.post('/admin/new.cooperation.delivery.list.modify', Pub.postParams(params), function(response){
                if(response.code === 0){
                    if(callback && typeof callback === 'function'){
                        callback(response.data);
                    }
                }
            });
        },
        /**
         * 新闻列表 - 修改
         */
        newslist: function(params, callback){
            Pub.post('/admin/news.list', Pub.postParams(params), function(response){
                if(response.code === 0){
                    if(callback && typeof callback === 'function'){
                        callback(response.data);
                    }
                }
            });
        },
        /**
         * 新闻列表 -删除
         */
        newslistdelete: function(params, callback){
            Pub.post('/admin/news.list.delete', Pub.postParams(params), function(response){
                if(response.code === 0){
                    if(callback && typeof callback === 'function'){
                        callback(response.data);
                    }
                }
            });
        },
        /**
         * 新闻列表 -排序
         */
        newslistsort: function(params, callback){
            Pub.post('/admin/news.list.sort', Pub.postParams(params), function(response){
                if(response.code === 0){
                    if(callback && typeof callback === 'function'){
                        callback(response.data);
                    }
                }
            });
        },
        /**
         * 新闻列表 - 详情
         */
        newslistdetails: function(params, callback){
            Pub.post('/admin/news.list.details', Pub.postParams(params), function(response){
                if(response.code === 0){
                    if(callback && typeof callback === 'function'){
                        callback(response.data);
                    }
                }
            });
        },
        /**
         * 新闻列表 - 添加
         */
        newslistadd: function(params, callback){
            Pub.post('/admin/news.list.add', Pub.postParams(params), function(response){
                if(response.code === 0){
                    if(callback && typeof callback === 'function'){
                        callback(response.data);
                    }
                }
            });
        },
        /**
         * 新闻列表 - 修改
         */
        newslistmodify: function(params, callback){
            Pub.post('/admin/news.list.modify', Pub.postParams(params), function(response){
                if(response.code === 0){
                    if(callback && typeof callback === 'function'){
                        callback(response.data);
                    }
                }
            });
        },
        /**
         * 创业帮助列表-添加
         */
        newbusinesshelplistadd: function(params, callback){
            Pub.post('/admin/new.business.help.list.add', Pub.postParams(params), function(response){
                if(response.code === 0){
                    if(callback && typeof callback === 'function'){
                        callback(response.data);
                    }
                }
            });
        },
        /**
         * 合作列表-添加
         */
        newcooperationdeliverylistadd: function(params, callback){
            Pub.post('/admin/new.cooperation.delivery.list.add', Pub.postParams(params), function(response){
                if(response.code === 0){
                    if(callback && typeof callback === 'function'){
                        callback(response.data);
                    }
                }
            });
        },
        /**
         * 上传图片限制图片大小200Kb和格式PNG/JPG/Gif
         */
        uploadLimitMore: function(elForm, elInput, type,passport,callback){
            var _this = this;
            var obj = {
                passport:passport,
                type : type
            };
            var dftime = $.cookie('lag-time');
            var sTimeUnix = new Date().getTime() + parseInt(dftime);
            var sTime = Pub.toTime(sTimeUnix);
            var signTxt = 'appId=' + Pub.appId + '&content=' + encodeURIComponent(JSON.stringify(obj)) + '&platform=' + Pub.platform + '&timestamp=' + sTime + '&version=' + Pub.version +'&'+ Pub.token;
            var sign = md5(signTxt).toUpperCase();

            var param = '?appId=' + Pub.appId + '&content=' + encodeURIComponent(JSON.stringify(obj)) + '&platform=' + Pub.platform + '&timestamp=' + sTime + '&version=' + Pub.version + '&sign='+sign;
            $(elInput).on('change', function(){
                var formData = new FormData();
                var elName=$(this).val().toLowerCase().split('.');
                if(elName[elName.length-1]=='jpg' || elName[elName.length-1]=='png' || elName[elName.length-1]=='gif'){
                    var imagSize =  $(this)[0].files[0].size;
                    if(imagSize>200*1024){
                        layui.use('layer', function(){
                            layer.msg('文件不能超过200kb', {icon: 5});
                        });
                    }else{
                        formData.append('file_data',$(this)[0].files[0]);
                        console.log(param);
                        $.ajax({
                            url: Pub.server+'/admin/img.upload'+param,
                            type: 'POST',
                            data: formData,
                            //这两个设置项必填
                            contentType: false,
                            processData: false,
                            beforeSend: function () {
                                load = layer.load(2);
                            },
                            success:function(response){
                                var res;
                                if(typeof response == 'string'){
                                    res = JSON.parse(response);
                                }else{
                                    res = response;
                                }
                                setTimeout(function(){
                                    $('.layui-layer').each(function(){
                                        if($(this).attr('type') === 'loading'){
                                            $(this).remove();
                                            $('.layui-layer-shade').remove();
                                        }
                                    });
                                },100);
                                callback(res);
                            }
                        })
                    }
                }else{
                    layui.use('layer', function(){
                        layer.msg('只能上传jpg/png/gif格式文件', {icon: 5});
                    });
                }

            });
        },
        /**
         * 上传图片限制图片大小50Kb和格式PNG/JPG
         */
        uploadLimit: function(elForm, elInput, type,passport,callback){
            var _this = this;
            var obj = {
                passport:passport,
                type : type
            };
            var dftime = $.cookie('lag-time');
            var sTimeUnix = new Date().getTime() + parseInt(dftime);
            var sTime = Pub.toTime(sTimeUnix);
            var signTxt = 'appId=' + Pub.appId + '&content=' + encodeURIComponent(JSON.stringify(obj)) + '&platform=' + Pub.platform + '&timestamp=' + sTime + '&version=' + Pub.version +'&'+ Pub.token;

            var sign = md5(signTxt).toUpperCase();

            var param = '?appId=' + Pub.appId + '&content=' + encodeURIComponent(JSON.stringify(obj)) + '&platform=' + Pub.platform + '&timestamp=' + sTime + '&version=' + Pub.version + '&sign='+sign;

            $(elInput).on('change', function(){
                var formData = new FormData();
                var elName=$(this).val().toLowerCase().split('.');
                if(elName[elName.length-1]=='jpg' || elName[elName.length-1]=='png'){
                    var imagSize =  $(this)[0].files[0].size;
                    if(imagSize>50*1024){
                        layui.use('layer', function(){
                            layer.msg('文件不能超过50kb', {icon: 5});
                        });

                    }else{
                        formData.append('file_data',$(this)[0].files[0]);

                        $.ajax({
                            url: Pub.server+'/admin/img.upload'+param,
                            type: 'POST',
                            data: formData,
                            //这两个设置项必填
                            contentType: false,
                            processData: false,
                            // beforeSend: function () {
                            //     load = layer.load(2);
                            // },
                            success:function(response){
                                var res;
                                console.log(response);
                                if(typeof response == 'string'){
                                    res = JSON.parse(response);
                                }else{
                                    res = response;
                                }
                                setTimeout(function(){
                                    $('.layui-layer').each(function(){
                                        if($(this).attr('type') === 'loading'){
                                            $(this).remove();
                                            $('.layui-layer-shade').remove();
                                        }
                                    });
                                },100);
                                callback(res);
                            }
                        })
                    }
                }else{
                    layui.use('layer', function(){
                        layer.msg('只能上传jpg/png格式文件', {icon: 5});
                    });
                }

            });
        },
        /**
         * 上传图片多图限制5张
         */
        uploadMulti5: function(elForm, elInput, type,passport,callback){
            var _this = this;
            var obj = {
                passport:passport,
                type : type
            };
            var dftime = $.cookie('lag-time');
            var sTimeUnix = new Date().getTime() + parseInt(dftime);
            var sTime = Pub.toTime(sTimeUnix);
            var signTxt = 'appId=' + Pub.appId + '&content=' + encodeURIComponent(JSON.stringify(obj)) + '&platform=' + Pub.platform + '&timestamp=' + sTime + '&version=' + Pub.version +'&'+ Pub.token;
            var sign = md5(signTxt).toUpperCase();


            var param = '?appId=' + Pub.appId + '&content=' + encodeURIComponent(JSON.stringify(obj)) + '&platform=' + Pub.platform + '&timestamp=' + sTime + '&version=' + Pub.version + '&sign='+sign;

            $(elInput).on('change', function(){
                var formData = new FormData();
                if ($(this)[0].files.length>5) {
                    layui.use('layer', function(){
                        layer.msg('一次最多传5张', {icon: 5});
                    });
                }else if($(this)[0].files.length>1){
                    for (var i = 0; i < $(this)[0].files.length; i++) {
                        formData.append('file_data[]',$(this)[0].files[i]);
                    };
                }else{
                    formData.append('file_data',$(this)[0].files[0]);
                };
                console.log($(this)[0].files);
                $.ajax({
                    url: Pub.server+'/admin/img.multi.upload'+param,
                    type: 'POST',
                    data: formData,
                    //这两个设置项必填
                    contentType: false,
                    processData: false,
                    beforeSend: function () {
                        load = layer.load(2);
                    },
                    success:function(response){
                        var res;
                        console.log(response);
                        if(typeof response == 'string'){
                            res = JSON.parse(response);
                        }else{
                            res = response;
                        }
                        setTimeout(function(){
                            $('.layui-layer').each(function(){
                                if($(this).attr('type') === 'loading'){
                                    $(this).remove();
                                    $('.layui-layer-shade').remove();
                                }
                            });
                        },100);
                        callback(res);
                    },
                    error:function(response){
                        console.log(response);
                    }
                })
            });
        },
        /**
         * 上传图片多图
         */
        uploadMulti: function(elForm, elInput, type,passport,callback){
            var _this = this;
            var obj = {
                passport:passport,
                type : type
            };
            var dftime = $.cookie('lag-time');
            var sTimeUnix = new Date().getTime() + parseInt(dftime);
            var sTime = Pub.toTime(sTimeUnix);
            var signTxt = 'appId=' + Pub.appId + '&content=' + encodeURIComponent(JSON.stringify(obj)) + '&platform=' + Pub.platform + '&timestamp=' + sTime + '&version=' + Pub.version +'&'+ Pub.token;
            var sign = md5(signTxt).toUpperCase();

            var param = '?appId=' + Pub.appId + '&content=' + encodeURIComponent(JSON.stringify(obj)) + '&platform=' + Pub.platform + '&timestamp=' + sTime + '&version=' + Pub.version + '&sign='+sign;
            $(elInput).on('change', function(){
                var formData = new FormData();
                if ($(this)[0].files.length>1) {
                    for (var i = 0; i < $(this)[0].files.length; i++) {
                        formData.append('file_data[]',$(this)[0].files[i]);
                    };
                }else{
                    formData.append('file_data',$(this)[0].files[0]);
                };
                console.log($(this)[0].files);
                $.ajax({
                    url: Pub.server+'/admin/img.multi.upload'+param,
                    type: 'POST',
                    data: formData,
                    //这两个设置项必填
                    contentType: false,
                    processData: false,
                    beforeSend: function () {
                        load = layer.load(2);
                    },
                    success:function(response){
                        var res;
                        console.log(response);
                        if(typeof response == 'string'){
                            res = JSON.parse(response);
                        }else{
                            res = response;
                        }
                        setTimeout(function(){
                            $('.layui-layer').each(function(){
                                if($(this).attr('type') === 'loading'){
                                    $(this).remove();
                                    $('.layui-layer-shade').remove();
                                }
                            });
                        },100);
                        callback(res);
                    },
                    error:function(response){
                        console.log(response);
                    }
                })
            });
        },

        /**
         * 上传图片
         */
        upload: function(elForm, elInput, type,passport,callback){
            var _this = this;
            var obj = {
                passport:passport,
                type : type
            };
            var dftime = $.cookie('lag-time');
            var sTimeUnix = new Date().getTime() + parseInt(dftime);
            var sTime = Pub.toTime(sTimeUnix);
            var signTxt = 'appId=' + Pub.appId + '&content=' + encodeURIComponent(JSON.stringify(obj)) + '&platform=' + Pub.platform + '&timestamp=' + sTime + '&version=' + Pub.version +'&'+ Pub.token;
            var sign = md5(signTxt).toUpperCase();

            var param = '?appId=' + Pub.appId + '&content=' + encodeURIComponent(JSON.stringify(obj)) + '&platform=' + Pub.platform + '&timestamp=' + sTime + '&version=' + Pub.version + '&sign='+sign;

            $(elInput).on('change', function(){
                var formData = new FormData();
                 console.log(formData);
                formData.append('file_data',$(this)[0].files[0]);
                console.log(param);
                $.ajax({
                    url: Pub.server+'/admin/img.upload'+param,
                    type: 'POST',
                    data: formData,
                    //这两个设置项必填
                    contentType: false,
                    processData: false,
                    // beforeSend: function () {
                    //     load = layer.load(2);
                    // },
                    success:function(response){
                        var res;
                        if(typeof response == 'string'){
                            res = JSON.parse(response);
                        }else{
                            res = response;
                        }
                        setTimeout(function(){
                            $('.layui-layer').each(function(){
                                if($(this).attr('type') === 'loading'){
                                    $(this).remove();
                                    $('.layui-layer-shade').remove();
                                }
                            });
                        },100);
                        callback(res);
                    }
                })
            });
        },

      /**
       * 退货/退款服务单导出
       */
      refundExport: function (params) {
        var dftime = $.cookie('lag-time');
        var sTimeUnix = new Date().getTime() + parseInt(dftime);
        var sTime = Pub.toTime(sTimeUnix);
        var signTxt = 'appId=' + Pub.appId + '&content=' + encodeURIComponent(JSON.stringify(obj)) + '&platform=' + Pub.platform + '&timestamp=' + sTime + '&version=' + Pub.version + '&' + Pub.token;
        var sign = md5(signTxt).toUpperCase();

        var param = '?appId=' + Pub.appId + '&content=' + encodeURIComponent(JSON.stringify(params)) + '&platform=' + Pub.platform + '&timestamp=' + sTime + '&version=' + Pub.version + '&sign=' + sign;
        var link = Pub.server + '/admin/payment.list' + param;
        window.open(link);
      },
    };
    return Api;
});